//
//  UIView+OCAddtion.h
//  ocVB
//
//  Created by apple on 2016/10/27.
//  Copyright © 2016年 apple. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIView (OCAddtion)

/**
 创建button的快捷方式

 @param imgName     图片名称
 @param backImgName 背景图片
 @param title       标题
 @param color       颜色
 @param obj         对象
 @param selector    消息

 @return button
 */
+ (instancetype)makeButtonWithImgName:(NSString *)imgName backgroundImagName:(NSString *)backImgName title:(NSString *)title titleColor:(UIColor *)color tagert:(id)obj selector:(SEL)selector;

/**
 创建button的快捷方式

 @param imgName  图片名称
 @param title    标题
 @param size     字体大小
 @param color    字体颜色
 @param obj      对象
 @param selector 消息

 @return button
 */
+ (instancetype)makeButtonWithImgName:(NSString *)imgName title:(NSString *)title titleFont:(CGFloat)size titleColor:(UIColor *)color tagert:(id)obj selector:(SEL)selector;

//+ (instancetype)makeButtonItemWith:(NSString *)title titleColor:(UIColor *)color imgName:(NSString *)imgName target:(id)obj selector:(SEL)selector;

@end
